package cn.zhukelili;


import java.util.Date;
import java.util.List;

/**
 * <p>
 * 系统用户
 * </p>
 *
 * @since 2018-11-20
 */
public class SysUser {

    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    private String username;


    /**
     * 密码
     */
    private String password;


    /**
     * 盐
     */
    private String salt;


    /**
     * 邮箱
     */
    private String email;


    /**
     * 手机号
     */
    private String mobile;


    /**
     * 状态  0：禁用   1：正常
     */
    private Integer status;


    /**
     * 部门ID
     */
    private Integer deptId;


    /**
     * 创建时间
     */
    private Date gmtCreate;


    /**
     * 修改时间
     */
    private Date gmtModified;


    /**
     * 创建人
     */
    private Integer createUser;


    /**
     * 修改人
     */
    private Integer modifiedUser;


    /**
     * 备注
     */
    private String memo;

    /**
     * 角色ID列表
     */
    private List<Integer> roleIdList;

    /**
     * 密码盐.
     * @return
     */
    public String getCredentialsSalt(){
        return this.username + this.salt;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Integer getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    public Integer getModifiedUser() {
        return modifiedUser;
    }

    public void setModifiedUser(Integer modifiedUser) {
        this.modifiedUser = modifiedUser;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public List<Integer> getRoleIdList() {
        return roleIdList;
    }

    public void setRoleIdList(List<Integer> roleIdList) {
        this.roleIdList = roleIdList;
    }
}
